命名空间 | |
| MultiLightCtrl_ImageStitching | |
函数 | |
| def | print_devices_info (deviceList) |
变量 | |
| int | exposure_num = 0 |
| list | HB_format_list |
| deviceList = MV_CC_DEVICE_INFO_LIST() | |
| tuple | tlayerType |
| ret = MvCamera.MV_CC_EnumDevices(tlayerType, deviceList) | |
| nConnectionNum = input("please input the number of the device to connect:") | |
| str_exposure_num = input("please input current exposure number:") | |
| cam = MvCamera() | |
| stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents | |
| nPacketSize = cam.MV_CC_GetOptimalPacketSize() | |
| stOutFrame = MV_FRAME_OUT() | |
| stDecodeParam = MV_CC_HB_DECODE_PARAM() | |
| stReconstructParam = MV_RECONSTRUCT_IMAGE_PARAM() | |
| list | dst_buffer_list = [] |
| stParam = MVCC_INTVALUE() | |
| nPayloadSize = stParam.nCurValue | |
| pSrcBuf | |
| nSrcLen | |
| pDstBuf | |
| nDstBufSize | |
| nWidth | |
| nHeight | |
| enPixelType | |
| pSrcData | |
| nSrcDataLen | |
| nExposureNum | |
| enReconstructMethod | |
| dst_buffer_len = int(stReconstructParam.nSrcDataLen/exposure_num) | |
| tuple | dst_buffer = (c_ubyte * dst_buffer_len)() |
| pBuf | |
| nBufSize | |
| string | file_name |
| string | c_file_path = file_name.encode('ascii') |
| stSaveParam = MV_SAVE_IMAGE_TO_FILE_PARAM_EX() | |
| nDataLen | |
| sub_len = stReconstructParam.stDstBufList[i].nBufLen | |
| tuple | img_buff = (c_ubyte * stSaveParam.nDataLen)() |
| pData | |
| enImageType | |
| pcImagePath | |
| iMethodValue | |